﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sunboxsoft.ASMS.Client.Domain.WebRef
{
    public partial class VSettlementBillMaterial
    {
        /// <summary>
        /// 领料状态
        /// </summary>
        public string ActualStatusText
        {
            get
            {
                if (this.ActualStatus != null)
                {
                    if (this.ActualStatus.Value == Constant.MaterialRequisitionStatus.Finished)
                    {
                        return "已领料";
                    }
                    else if (this.ActualStatus.Value == Constant.MaterialRequisitionStatus.Returned)
                    {
                        return "已领料";
                    }
                }
                return "未领料";
            }
        }

        /// <summary>
        /// 结算类型
        /// </summary>
        public string SettlementTypeText
        {
            get
            {
                return Domain.Constant.SettlementTypes.GetText(this.SettlementType);
            }
        }

        public VSettlementBillMaterial()
        {
        }
    }
}
